﻿
var trHTML = '<tr class="tr"><td style="width:200px">姓名</td><td style="width:200px">部门</td><td style="width:200px">职位</td><td style="width:200px">调薪日期</td><td style="width:150px">调整后薪资</td></tr>';
var CreateSalaryChangInfo = function () {
    alert(userPropertyValues.EmployeeID);
    var rows = fnGetSalaryRecordByID(userPropertyValues.EmployeeID);
    if (rows == null) {
        /*$("#SalaryChangeInfoTbody").html(trHTML );*/
        return;
    }
    $.each(rows, function (o) {
        trTbody = trTbody + trHTML.replace("调薪日期", data.rows[o].EffectDate)
                            .replace("调整后薪资", data.rows[o].BaseSalary)
                            .replace("部门", data.rows[o].DeptName)
                            .replace("职位", data.rows[o].PostName)
                            .replace("姓名", data.rows[o].CName);

    });
    $("#SalaryChangeInfoTbody").html(trTbody);
}
$(document).ready(function () {
    setTimeout(CreateSalaryChangInfo, 1000);
});
